    <div class="container">
        <div class="line-big">
            <div class="xb9 xm8">
                <div class="panel dux-box dux-cell thread-info">
                    <div class="panel-head clearfix">
                        <ul class="bread float-left">
                            <!--loop{$crumb as $vo}-->
                              <li><a href="{$vo.url}">{$vo.name}</a></li>
                            <!--{/loop}-->
                        </ul>
                    </div>
                    <div class="info-detail">
                        <table class="table text-small">
                            <tbody>
                                <tr>
                                    <td>
                                        <h2>
                                        <!--if{$threadInfo['type_top'] ==1 }-->
                                        <span class="icon-angle-up text-yellow" title="板块置顶"></span>
                                        <!--{/if}-->
                                        <!--if{$threadInfo['type_top'] ==2 }-->
                                        <span class="icon-angle-double-up text-yellow" title="全局置顶"></span>
                                        <!--{/if}-->
                                        
                                        <!--if{$threadInfo['type_digest']}-->
                                        <span class="icon-sun-o text-yellow" title="热帖"></span>
                                        <!--{/if}-->
                                        <!--if{$threadInfo['type_hop']}-->
                                        <span class="icon-fire text-yellow" title="热帖"></span>
                                        <!--{/if}-->
                                        <a href="{url('posts/Thread/index',array('thread_id'=>$threadInfo['thread_id']))}">{$threadInfo.title}</a>
                                        <!--if{$threadInfo['lock']}-->
                                        <span class="icon-lock text-yellow" title="锁定"></span>
                                        <!--{/if}-->
                                        </h2>
                                        <p class="meta">
                                            <a href="{url('forum/UserHome/index',array('user_id'=>$threadInfo['post_user']))}">{$threadInfo.post_username}</a> • {date('m月d日 H:i',$threadInfo['post_time'])}
                                        </p>
                                    </td>
                                    <td width="64">
                                        <a href="{url('forum/UserHome/index',array('user_id'=>$threadInfo['post_user']))}"><img width="48" height="48" class="avatar" src="{target('forum/User')->avatar($threadInfo['post_user'])}" alt="{$threadInfo.post_username}"></a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="info-body">
                        <!--if{$editUserInfo}-->
                        <div class="info-tip"> 该帖最后由 <a href="{url('forum/UserHome/index',array('user_id'=>$threadInfo['edit_user']))}" target="_blank">{$editUserInfo.username}</a> 于 {date('Y-m-d H:i',$threadInfo.edit_time)} 编辑</div>
                        <!--{/if}-->
                        {$threadInfo.content}
                    </div>
                    <?php $manage = explode(',', $plateInfo['manage']); ?>
                    <!--if{USER_ID}-->
                    <!--if{ $loginUserInfo['user_id'] == $threadInfo['post_user'] || $loginUserInfo['admin'] || in_array($loginUserInfo['username'], $manage) }-->
                    <div class="thread-tools">
                        <a href="{url('posts/Push/edit',array('thread_id'=>$threadInfo['thread_id']))}" class="icon-pencil-square-o"> 编辑</a> 
                        <!--if{ $loginUserInfo['admin'] || in_array($loginUserInfo['username'], $manage) }-->
                        | <a class="icon-lock" href="{url('forum/Thread/manage',array('thread_id'=>$threadInfo['thread_id']))}"> 管理</a>
                        <!--{/if}-->
                    </div>
                    <!--{/if}-->
                    <!--{/if}-->
                </div>
                <br>
                <!--if{!empty($pageList)}-->
                <div class="panel dux-box dux-cell reply-list">
                    <div class="panel-head clearfix">
                        回复 ({$count})
                    </div>
                    <table class="table table-hover thread-list">
                        <tbody>
                           <!--loop{$pageList as $vo}-->
                            <tr>
                                <td width="64">
                                    <a href="{url('forum/UserHome/index',array('user_id'=>$vo['user_id']))}"><img class="avatar" width="48" height="48" src="{target('forum/User')->avatar($vo['user_id'])}" alt="{$vo.username}"></a>
                                </td>
                                <td>
                                    <p class="list-detail">
                                         <a href="{url('forum/UserHome/index',array('user_id'=>$vo['user_id']))}">{$vo.username}</a> • {date('m月d日 H:i',$vo['time'])}
                                    </p>
                                    <p class="list-body">
                                        {$vo.content}
                                    </p>
                                </td>
                            </tr>
                            <!--{/loop}-->
                        </tbody>
                    </table>
                    <div class="panel-foot">{$page}</div>
                </div>
                <br>
                <!--{/if}-->
                <!--if{!$threadInfo['lock'] && USER_ID}-->
                <div class="panel dux-box" id="reply">
                    <div class="panel-head clearfix">
                        我也来说两句...
                    </div>
                    <div class="panel-body">
                        <form method="post" class="form" action="{url('forum/Reply/index',array('thread_id'=>$threadInfo['thread_id']))}">
                          <textarea class="input" name="content" id="content" rows="3"></textarea>
                          <br>
                          <input name="token" type="hidden" value="{$token}">
                          <div class="text-right"><button class="button bg-main button-block" type="submit">回复</button></div>
                        </form>
                    </div>
                </div>
                <br>
                <!--{/if}-->
                
            </div>
            <div class="xb3 xm4 text-small dux-sidebar">
               <a href="{url('posts/Push/add',array('plate_id'=>$threadInfo['plate_id']))}" class="button bg-yellow button-block text-center">发布主题</a>
               <br>
               <a href="#reply" class="button bg-main button-block text-center">回复主题</a>
               <br>
               <?php $__Template->display('app/forum/view/common/sidebar'); ?>
            </div>
        </div>
    </div>
<script>
    Do.ready('base', function () {
       $('pre').highlight();
        $('#content').bbsEditor();
    });
</script>